package com.vfconsulting.common.action;

import java.awt.Point;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.TreeMap;

import com.opensymphony.xwork2.ActionSupport;
import com.vfconsulting.common.service.ChartService;
import com.vfconsulting.util.ListValue;

public class ChartPieAction extends ActionSupport {

	  private static final long     serialVersionUID = 4851863957798371834L;

	  private List<Point>           points;
	  private List<Point>           pointsWithNull;
	  private List<ListValue>       objList;
	  private Map<Integer, Integer> pointsFromMap;
	  private Map<Date, Integer>    dateFromMap;
	  private String                minTime;
	  private String                maxTime;
	  
	  private ChartService chartService;
	  
	  public ChartPieAction(){
		  chartService = new ChartService();
	  }

	  public String execute() throws Exception {	   
	    return SUCCESS;
	  }

	  
	  public void setPoints(List<Point> points) {
		this.points = points;
	}


	public void setPointsWithNull(List<Point> pointsWithNull) {
		this.pointsWithNull = pointsWithNull;
	}


	public void setObjList(List<ListValue> objList) {
		this.objList = objList;
	}


	public void setPointsFromMap(Map<Integer, Integer> pointsFromMap) {
		this.pointsFromMap = pointsFromMap;
	}


	public void setDateFromMap(Map<Date, Integer> dateFromMap) {
		this.dateFromMap = dateFromMap;
	}


	public void setMinTime(String minTime) {
		this.minTime = minTime;
	}


	public void setMaxTime(String maxTime) {
		this.maxTime = maxTime;
	}


	public List<Point> getPoints()
	  {
	    return points;
	  }

	  public List<Point> getPointsWithNull()
	  {
	    return pointsWithNull;
	  }

	  public Map<Integer, Integer> getPointsFromMap()
	  {
	    return pointsFromMap;
	  }

	  public Map<Date, Integer> getDateFromMap()
	  {
	    return dateFromMap;
	  }

	  public String getMinTime()
	  {
	    return minTime;
	  }

	  public String getMaxTime()
	  {
	    return maxTime;
	  }

	  public List<ListValue> getObjList()
	  {
	    return objList;
	  }
}
